Calculate the coefficient of variation with a moving window for pixel data in raster images using R to analyze local texture and variability.